package com.itrus.spring.aop.controller;

import com.itrus.spring.aop.service.OrderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author peigen
 * @since 2024/10/8
 */
@RestController
public class AopController {

    @Resource
    private OrderService orderService;

    @RequestMapping(path = "/order")
    public String order() {
        return orderService.createOrder();
    }
}
